import ajax from './ajax.js'

// 请求首页表格数据 
export const reqTableData = () => {
  return ajax({
    url: '/home/getData',
    method: 'get'
  })
}

// 请求用户信息
export const reqUserData = (page) => {
  return ajax({
    url: '/user/getUser',
    method: 'get',
    params: {
      page
    },
  })
}

// 请求登录
export const reqLogin = (username, password) => {
  return ajax({
    url: '/permission/getMenu',
    method: 'post',
    data: {
      username,
      password
    }
  })
}